import request from '@/utils/request'

// 查询报销文件列表
export function listExpendfile(query) {
  return request({
    url: '/Expend/expendfile/list',
    method: 'get',
    params: query
  })
}

// 查询报销文件详细
export function getExpendfile(fileId) {
  return request({
    url: '/Expend/expendfile/' + fileId,
    method: 'get'
  })
}

// 新增报销文件
export function addExpendfile(data) {
  return request({
    url: '/Expend/expendfile',
    method: 'post',
    data: data
  })
}

// 修改报销文件
export function updateExpendfile(data) {
  return request({
    url: '/Expend/expendfile',
    method: 'put',
    data: data
  })
}

// 删除报销文件
export function delExpendfile(fileId) {
  return request({
    url: '/Expend/expendfile/' + fileId,
    method: 'delete'
  })
}
